<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <!-- Needed for UnloadabilityIncompatible, CMakeProjectReference -->
    <RequiresProcessIsolation>true</RequiresProcessIsolation>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <!-- The test leaves AssemblyLoadContext.Default.ResolvingUnmanagedDll event registered to a method in the test at exit -->
    <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="*.cs" />
    <Compile Include="../NativeLibraryToLoad/NativeLibraryToLoad.cs" />
  </ItemGroup>
  <ItemGroup>
    <CMakeProjectReference Include="../NativeLibraryToLoad/CMakeLists.txt" />
    <ProjectReference Include="$(TestLibraryProjectPath)" />
    <ProjectReference Include="TestAsm/TestAsm.csproj">
      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
      <OutputItemType>Content</OutputItemType>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </ProjectReference>
  </ItemGroup>
</Project>
